package com.example.runner;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

@Slf4j
public class MainThread {
    public static void main(String[] args) {
        ExecutorService taskExecService = ThreadUtils.newDaemonFixedThreadExecutor("master", 20);
        Future<Boolean> future = taskExecService.submit(new DependThread());
        while (!future.isDone()) {
            //log.info("waiting result.");
        }
        log.info("it's done");
    }
}
